﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddOrEdit.aspx.cs" Inherits="admin_Modules_NewsEvent_NewsCategory_AddOrEdit" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="/admin/resources/js/base.js" type="text/javascript"></script>
    <script language="javascript">
        var setValue = function (value, text) {


        }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="SM" runat="server">
    </ext:ResourceManager>
    <ext:Viewport ID="wdAddOrEdiCategory" runat="server" Collapsible="false" Icon="PageCopy"
        Modal="false" ShowOnLoad="false" Layout="BorderLayout">
        <Items>
            <ext:Panel ID="Panel1" runat="server" Padding="10" Region="Center">
                <TopBar>
                    <ext:Toolbar ID="Toolbar2" runat="server">
                        <Items>
                            <ext:Button Icon="Disk" Text="Cập nhật">
                                <DirectEvents>
                                    <Click OnEvent="AddOrEditCategory" Before="Ext.Msg.wait('Cập nhật dữ liệu ...', 'Saving');">
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:Hidden runat="server" ID="hdfCurrentCategory">
                            </ext:Hidden>
                            <ext:Hidden runat="server" ID="hdfParentCategory">
                            </ext:Hidden>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:FormPanel ID="frm_AddorEdit" runat="server" BodyBorder="false" Border="false"
                        LabelWidth="180">
                        <Items>
                            <ext:TextField runat="server" ID="txtTitle" AllowBlank="false" FieldLabel="Tiêu đề"
                                Width="260">
                            </ext:TextField>
                            <ext:TextField runat="server" ID="txtUrl" FieldLabel="Đường dẫn" Width="260">
                            </ext:TextField>
                            <ext:NumberField runat="server" ID="txtOrder" FieldLabel="Thứ tự" Width="60">
                            </ext:NumberField>
                            <ext:Checkbox runat="server" ID="chkNewWindow" Checked="false" FieldLabel="Mở cửa sổ mới">
                            </ext:Checkbox>
                            <ext:Checkbox runat="server" ID="chkActive" Checked="true" FieldLabel="Hiển thị">
                            </ext:Checkbox>
                            <ext:Checkbox runat="server" ID="chkOnHomePage" Checked="false" FieldLabel="Thể hiện tin trang chủ">
                            </ext:Checkbox>
                            <ext:Checkbox runat="server" ID="chkOnTop" Checked="true" FieldLabel="Thể hiện ở menu trên cùng">
                            </ext:Checkbox>
                            <ext:Checkbox runat="server" ID="chkOnLeft" Checked="false" FieldLabel="Thể hiện ở menu bên trái">
                            </ext:Checkbox>
                            <ext:Checkbox runat="server" ID="chkOnRight" Checked="false" FieldLabel="Thể hiện ở menu bên phải"
                                Visible="false">
                            </ext:Checkbox>
                            <ext:Checkbox runat="server" ID="chkOnBottom" Checked="false" FieldLabel="Thể hiện ở menu dưới cùng"
                                Visible="false">
                            </ext:Checkbox>
                        </Items>
                    </ext:FormPanel>
                </Items>
            </ext:Panel>
        </Items>
        <Listeners>
            <Show Handler="txtTitle.focus(100,true);" />
        </Listeners>
    </ext:Viewport>
    </form>
</body>
</html>
